home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.01 Jan 90 / Jan Jorg Source / MacTutorDoc.h < prev    next >
Encoding:
Text File  |  1989-11-20  |  631 b   |  26 lines  |  [TEXT/MPS ]

  1. // Our document class. Only displays some text in a window
  2. //
  3. class TMacTutorDocument : public TDocument {
  4.     
  5.   protected:
  6.     short fItemSelected;
  7.     // string corresponding to menu item selected
  8.     StringPtr fDisplayString;
  9.  
  10.     void DrawWindow(void);
  11.  
  12.   public:
  13.     TMacTutorDocument(short resID, StringPtr s);
  14.     ~TMacTutorDocument(void);
  15.     // routine to access private variables
  16.     void SetDisplayString (StringPtr s) {fDisplayString = s;}
  17.     short GetItemSelected(void) {return fItemSelected;}
  18.     void SetItemSelected(short item) {fItemSelected = item;}
  19.  
  20.     // methods from TDocument we override
  21.     void DoUpdate(void);
  22. };
  23.  
  24. const int kMinDocDim = 40;
  25.  
  26.